package org.bonorsoft.modules.wechat.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@TableName("wx_picture")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WxPicture {
    /**轮播图主键*/
    @TableId
    private java.lang.String id;

    /**轮播图名称*/
    @NotBlank(message = "轮播图名称不能为空")
    @Size(min = 0, max = 50, message = "轮播图名称长度不能超过50个字符")
    private String photoName;

    /**轮播图链接*/
    private java.lang.String photoLink;

    /**创建人id*/
    private java.lang.String createBy;

    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private java.util.Date createTime;

    /** 显示顺序 */
    @NotBlank(message = "显示顺序不能为空")
    private String orderNum;

    /**备注*/
    private java.lang.String remark;

    /**更新人id*/
    private java.lang.String updateBy;

    /**更新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private java.util.Date updateTime;

}
